#pragma once

#ifndef TASKEVENT_H
#define TASKEVENT_H

#include <QEvent>
#include <QSemaphore>
#include <memory>

struct TTaskClosure;

class TTaskEvent : public QEvent
{
public:
    TTaskEvent();
    virtual ~TTaskEvent();
    static Type eventType;

    TTaskClosure *closure;
    std::shared_ptr<QSemaphore> syncSem;
    quint64 uid;
};

#endif // TASKEVENT_H
